package com.eastfair.transport.vo;

import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.common.vo.AttachmentFileVO;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 实体类
 * 清关商品
 * </p>
 *
 * @author linan
 * @since 2022-07-21
 */
@Data
@ApiModel(value = "CustomsClearanceVO", description = "清关商品")
public class CustomsClearanceVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long exhibitionManageId;
    /**
     * 展品名称
     */
    @ApiModelProperty(value = "展品名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "展品名称长度不能超过255")
    private String exhibitName;
    /**
     * 展品类别
     */
    @ApiModelProperty(value = "展品类别")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "展品类别长度不能超过255")
    private String exhibitType;
    /**
     * 审核状态
     */
    @ApiModelProperty(value = "审核状态")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "审核状态长度不能超过255")
    private String auditState;

    /**
     * 报关单
     */
    @ApiModelProperty(value = "报关单")
    private List<AttachmentFileVO> customsDeclarationFiles;

    /**
     * 托运单
     */
    @ApiModelProperty(value = "托运单")
    private List<AttachmentFileVO> consignmentNoteFiles;

    /**
     * 发票
     */
    @ApiModelProperty(value = "发票")
    private List<AttachmentFileVO> invoiceFiles;

    /**
     * 贸易合同
     */
    @ApiModelProperty(value = "贸易合同")
    private List<AttachmentFileVO> tradeContractFiles;

    /**
     * 出口收汇核算单
     */
    @ApiModelProperty(value = "出口收汇核算单")
    private List<AttachmentFileVO> exportCollectionFiles;

    /**
     * 海关监管证件
     */
    @ApiModelProperty(value = "海关监管证件")
    private List<AttachmentFileVO> customsSupervisionCertificateFiles;

    /**
     * 其他附件
     */
    @ApiModelProperty(value = "其他附件")
    private List<AttachmentFileVO> otherFiles;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalDateTime createTime;



}
